//
//  UIColor.swift
//  RongYiHua
//
//  Created by 卢小艳 on 2025/7/11.
//

import Foundation
import SwiftUI

extension UIColor {
    
    convenience init(hex: String) {
        let hexSanitized = hex.replacingOccurrences(of: "#", with: "")
        let scanner = Scanner(string: hexSanitized)
        var rgb: UInt64 = 0
        scanner.scanHexInt64(&rgb)
        
        let red = Double((rgb & 0xFF0000) >> 16) / 255.0
        let green = Double((rgb & 0x00FF00) >> 8) / 255.0
        let blue = Double(rgb & 0x0000FF) / 255.0
        
        self.init(red: red, green: green, blue: blue, alpha: 1)
    }
    
    static let jqfxhEasyRedvvBg = UIColor(hex: "FFF0F5")
    
    static let jqfxhDarkBluewwBg = UIColor(hex: "0E5CFF")
    
    static let jqfxhThemexxRed = UIColor(hex: "FE1C68")

    static let jqfxhLineyyGray = UIColor(hex: "E5E5E5")

    
    static let jqfxhTextLightzzGray6 = UIColor(hex: "666666")

    static let jqfxhTextLightaaGray = UIColor(hex: "A6A6A6")
    
    static let jqfxhSmallViewBgbbGray = UIColor(hex: "F8F8FA")
    
    static let jqfxhBigViewBgccGray = UIColor(hex: "F5F5F5")
    
    static let jqfxhTabTexddtRed = UIColor(hex: "#EC1E27")
    
    static let jqfxhMaineeRed = UIColor(hex: "#FB3F38")

    

}
